/**
 * <pre>
 * ss-fire-collector / CollectConstants.java
 * collector.core Class
 * CollectConstants
 * <br>
 * 
 * <br>
 * @author ytjeong/apexcns,Inc.
 * @version 1.0
 * @see javadoc
 * @since 2012. 9. 12.
 * </pre>
 */
package collector.core;

import system.common.Constants;

/** <pre>
 * Class : collector.core.CollectConstants / CollectConstants.java
 * 	Define Class Object : 
 * <br>
 * </pre>
 * @author ytjeong / apexcns,Inc.
 * @version 1.0
 * @see javadoc
 * @since 2012. 9. 12.
 */

public class CollectConstants extends Constants {

	// Log Level Define
	public static final int LOG_ERROR = 1;
	public static final int LOG_WARN = 2;
	public static final int LOG_INFO = 3;
	public static final int LOG_DEBUG = 4;

	// Add collector schedule Constants
	public static final String DURATION_SECOND = "SEC";
	public static final String DURATION_MINUTE = "MIN";
	public static final String DURATION_HOUR = "HOUR";
	public static final String DURATION_DAY = "DAY";
	
	// parameter names specific to this job
	public static final String EXECUTION_JOBIDS = "jobids";
	public static final String EXECUTION_RECCOUNT = "reccount";
	public static final String EXECUTION_PREJOBSTATE = "prejobstate";
	public static final String EXECUTION_JOBSTATEVO = "jobstatevo";
	public static final String EXECUTION_MESSAGE = "msg";
	
	// definition JOB Status Info
	public static final int INIT_RECCOUNT = 0;
	public static final int INIT_PREJOBSTATE = -1;

	// Set job Result
	public static final String CODE_JOB_RESULT_SUCC	= "Succ";
	public static final String CODE_JOB_RESULT_FAIL	= "Fail";
	// Set job Code
	public static final int CODE_JOB_RESULT_CODE_FAIL = -1;
	public static final int CODE_JOB_RESULT_CODE_SUCC = 0;
	// Set job State
	public static final String CODE_JOB_STATE_DO	= "Do";
	public static final String CODE_JOB_STATE_DOING	= "Doing";
	public static final String CODE_JOB_STATE_DONE	= "Done";
	public static final String CODE_JOB_STATE_WILL_DO = "Will Do";
	
	// Set server Mode to load
	public static final String DEFAULT_SERVER_MODE_KEYNAME	= "collect.mode";
	public static final String DEFAULT_SERVER_MODE_KEYVALUE	= "meta";

	// 작업 상태 Reporting Request Url
	public static final String URL_REPORT	= "/collector/meta/report.do"; // 데몬 상태 정보 리스트 요청
	public static final String URL_JOBSTATE= "/collector/meta/jobstate.do"; // 작업들에 대한 상태 리스트 요청
	public static final String URL_LOGVIEW= "/collector/meta/logview.do"; // 로그 정보 요청
	public static final String URL_GRAPH	= "/collector/meta/graph.do"; // 미 이용
	public static final String URL_LOGGER	= "/collector/meta/logger.do"; // 미 이용
	
	// 작업 결과 Url
	public static final String STATE_PAST = "past.xml";
	public static final String STATE_CURRENT = "current.xml";
	public static final String STATE_NEXT = "next.xml";
	
	// Log Prefix 정의 Constant
	public static final String LOGGER_MODULE_NAME_AFTFIX	= "-Log>	| ";
	public static final String LOGGER_MODULE_NAME_CMS	= "col-CMS"; // Collect Meta Server
	public static final String LOGGER_MODULE_NAME_JLC	= "col-JLC"; // JOB Listener Class
	public static final String LOGGER_MODULE_NAME_SJLC	= "col-SJLC"; // Simple JOB Listener Class
	public static final String LOGGER_MODULE_NAME_RJLC	= "col-RJLC"; // RMI JOB Listener Class
	public static final String LOGGER_MODULE_NAME_JMC	= "col-JMC"; // JOB Module Class
	public static final String LOGGER_MODULE_NAME_SJMC	= "col-SJMC"; // Simple JOB Module Class
	public static final String LOGGER_MODULE_NAME_RJMC	= "col-RJMC"; // RMI JOB Module Class
	public static final String LOGGER_MODULE_NAME_SMC	= "col-SMC"; // Sub Module Class
	public static final String LOGGER_MODULE_NAME_JTU	= "col-JTU"; // JobTaskUtil Class
	public static final String LOGGER_MODULE_NAME_SCU	= "col-SCU"; // SCheduleUtil Class
	
	// 작업 모듈 default Class, 작업 그룹, 트리거명 및 그룹 정보 정의 
	public static final String DEFAULT_TASK_CLASSSTR	= "collector.module.ModuleJob";	// collector.module.ModuleJob
	public static final String SIMPLE_TASK_CLASSSTR	= "collector.module.SimpleJob";	// collector.module.SimpleJob
	public static final String DEFAULT_TASK_HISTORYNAME_AFTFIX	= "/history/";		// taskName+"_Group"
	public static final String DEFAULT_TASK_STATENAME_AFTFIX	= "/state/";		// taskName+"_Group"
	public static final String DEFAULT_TASK_GROUPNAME_AFTFIX	= "_Group";		// taskName+"_Group"
	public static final String DEFAULT_TASK_CLASSSTR_PREFIX	= "collector.module.";	// "collector.module." + taskName+"_Job";
	public static final String DEFAULT_TASK_CLASSSTR_AFTFIX	= "_Job";			// "collector.module." + taskName+"_Job"; 
	public static final String DEFAULT_TRIGGER_NAME_AFTFIX	= "_Trigger";		// taskName+"_Trigger"
	public static final String DEFAULT_TRIGGER_GROUPNAME_AFTFIX	= "_TriggerGroup";		// taskName+"_TriggerGroup"
	public static final String DEFAULT_LISTENER_PACKAGESTR	= "collector.module.listener";	// collector.module.listener
	public static final String DEFAULT_LISTENER_CLASSSTR	= "ModuleJobListener";		// ModuleJobListener
	public static final String DEFAULT_LISTENER_NAME_AFTFIX	= "_JobListener";// DEFAULT_LISTENER_PACKAGESTR + "."+initJobIds+"_JobListener"
	
}
